package com.itstyle.mytest.threadpoolexecutor;

/**
 * @author xianguang
 * @date 2020-01-06 13:59
 */
public interface ExecutorService {

    /**
     * 执行任务
     * @param task
     */
    void execute(Runnable task);

    /**
     * 关闭线程池
     */
    void shutdown();

}
